CC = g++
TARGET = tun
OBJECTS = client.o collidable.o game_object.o game.o graphics.o model.o misc.o playable.o player.o renderer.o server.o main.o log.o

CFL = `sdl-config --cflags`
LFL = `sdl-config --libs`

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CC) -o $(TARGET) $(OBJECTS) -g -lrt $(LFL) -lSDL_net -lSDL_gfx -luuid
#-L/usr/X11R6/lib -lglut -lX11 -lm -lXext -lGL -lGLU -lglut -lpthread

%.o: %.cc %.h
	$(CC) $(CFL) -g -c $< -o $@


